from django.shortcuts import render
from .models import Book,Publisher
from django.http import HttpResponse


def index(request):
    pub1 = Publisher(id='001c', add='大连市人民出版社')
    pub1.save()
    book = Book(name='小人书')
    book.pub = pub1
    book.save()
    return HttpResponse('成功')
